package com.example.demo.service;

import com.example.demo.entity.BookInfo;
import com.example.demo.entity.Cart;
import com.example.demo.pojo.BSResult;

import javax.servlet.http.HttpServletRequest;

public interface CartService {

    public BSResult addToCart(BookInfo bookInfo,Cart cart,int buyNum);
    public void removeCart(HttpServletRequest request);
    public void deleteBook(Integer book_id,HttpServletRequest request);
    BSResult removeCart(HttpServletRequest request,String sessionName);
    public BSResult updateNumById(Integer book_id,Integer newNum,HttpServletRequest request);
}
